package com.guguskins.back.mapper;

import com.guguskins.back.entity.GuPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 权限 Mapper 接口
 * </p>
 *
 * @author mybatis-plus
 * @since 2021-07-16
 */
public interface GuPermissionMapper extends BaseMapper<GuPermission> {
    List<String> selectAllPermissionValue();

    List<String> selectPermissionValueByUserId(Integer userId);

    List<GuPermission> selectPermissionByUserId(Integer userId, boolean route);

}
